package entity;
import control.*;
import java.awt.event.MouseEvent;
import java.util.*;

public abstract class GameClickableObj extends GameObj implements Clickable {
	
	private static ArrayList<GameClickableObj> gameClickableObj = new ArrayList<GameClickableObj>();
    public GameClickableObj(String imgs) {
		super(imgs);
		gameClickableObj.add(this);
    }
	public GameClickableObj(String img,int cropwidth, int cropheight) {
		super(img,cropwidth,cropheight);
		gameClickableObj.add(this);
    }
	public void click(MouseEvent e) {
        mouseClicked(e);
    }
	
	public static ArrayList<GameClickableObj> getGameClickableObj() {
		return gameClickableObj;
	}
	public static void setGameClickableObj(GameClickableObj go) {
		gameClickableObj.add(go);
	}
    public abstract void mouseClicked(MouseEvent e);
}
